{% load jrc_shared %}

{% for item in market_list %}

    <tr class="{% cycle 'row1' 'row2' %}">
        <td>{{ item.pk }}</td>
        <td>{{ item.status_name }}</td>
        <td>{{ item.asset }}</td>
        <td>{{ item.name }}</td>
        <td>{{ item.stock_exchange_id.label }}</td>
        <td>{{ item.get_currency_symbol|safe }}</td>
        <td>{{ item.get_points_fmt|jrc_intformat }}</td>
        <td>{{ item.point_price }}</td>
        <td>{{ item.get_price_of_points }}</td>
        <td>{{ item.start|time:"H:i" }}</td>
        <td>{{ item.end|time:"H:i" }}</td>
        <td>{{ item.time_zone }}</td>
        <td>{{ item.price_decimal_places }}</td>
        <td nowrap>
            <a href="/portadmin/market/{{ item.pk }}/" class="changelink">&nbsp;</a>
            <a href="/portadmin/market/{{ item.pk }}/delete/" class="deletelink">&nbsp;</a>
        </td>
    </tr>

{% empty %}
    <tr>
        <td colspan="12">No Markets</td>
    </tr>
{% endfor %}
